Skip to main content

Integration of external casino providers to Evenbet

General Information

This sub-section provides information about the integration of external casino providers to the Evenbet system.

All requests to the system must be done with the header {Authorization} that can be generated if you encrypt the request body string + secret key with sha256 algorithm.

$hash = hash("sha256", $request->getRawBody() . $secretKey);

The generation of Authorization header with hash function (php).

Example of Authorization header generation:

Given the following raw request body and secret key:

Raw body: {"token":"b91b664a8e2b558c240824f7da0e842c","gameId":"testGameId","endRound":false,"roundId":"29","transactionId":"d_182","amount":0}
Secret key: test_secret_key

The resulting hash used in the Authorization header:

5a0314907c49dea0b8cc90533e80c82ce523285c5f01831e41f06a0d6ba69a6e